Adding or Modifying Report Groups
To add a report group to the Report Scheduler, press the F6 key in the Work with Report Scheduler screen (STRFW > 41 > 51) as shown in Scheduling Reports.
To modify an existing report group, enter 1 in the Opt field for the report group or a report in it in the Work with Report Scheduler screen.
The Add Report Group or Modify Report Group screen appears. They differ only in their title and an additional read-only field on the Modify Report Group screen:
Add Report Group Report groups are intended to run pre-defined sets of reports automatically on a periodic basis. If ZIP(*YES) is specified, all PDF, HTML, CSV will be sent together. Other individual reports parameters, if defined, override group parameters. The use of descriptive date values *YESTERDAY, *WEEKSTR... is recommended. Type choices, press Enter. Report Group name . . . Name e.g. DAILY, WEEKLY, MONTHLY etc. Description . . . . . . Press Enter to continue to the Define Parameters screen. F3=Exit F12=Cancel |
The screen includes the following fields:
Report Group name
The name of the group. It may have up to seven alphanumeric characters, beginning with a letter.
Description
A free-form text description of the report group.
Group parameters
On the Modify Report Group screen, a read-only field showing the parameters that have already been entered for the group.
After entering this information, press Enter twice to confirm it.
The Define FW Report Group Details (DFNFWGRPD) screen appears:
Define FW Report Group Details (DFNFWGRPD) Type choices, press Enter. Starting date and time: Starting date . . . . . . . . *CURRENT Date, *CURRENT, *YESTERDAY... Starting time . . . . . . . . 000000 Time Ending date and time: Ending date . . . . . . . . . *CURRENT Date, *CURRENT, *YESTERDAY... Ending time . . . . . . . . . 235959 Time System to run for . . . . . . . *CURRENT Name, *CURRENT, *group, *ALL.. Output . . . . . . . . . . . . . *PDF *, *PRINT, *PDF, *HTML.. Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys |
The screen contains the following fields:
Starting date and time
Starting date
The day or date on which the included data begins.
Allowed values include:
- *CURRENT: The current date
- *YESTERDAY: Yesterday's date
- *WEEKSTR: The first day of the current week. By default, this is Sunday.
- *PRVWEEKS: The first day of the previous week
- *MONTHSTR: The first day of the current month
- *PRVMONTHS: The first day of the previous month
- *YEARSTR: The first day of the current year
- *PRVYEARS: The first day of the previous year
- *MON: Monday
- *TUE: Tuesday
- *WED: Wednesday
- *THU: Thursday
- *FRI: Friday
- *SAT: Saturday
- *SUN: Sunday
Starting time
The time on the Starting date at which the included data begins, in HHMMSS format.
Ending date
The day or date on which the included data ends.
Allowed values are the same as for Starting date.
Ending time
The time on the Starting date at which the included data ends, in HHMMSS format.
System to run for
Queries can run on information for this system or for others. Possible values include:
- *CURRENT: The current system.
- *ALL: All systems.
- Name: The name of a different system.
- *group: A named group of systems.
Output
The destinations for output. Possible values include:
- *: The default output. If running interactively, this is the current screen.
- *PDF: Print report to PDF outfile.
- *HTML: Print report to HTML outfile.
- *CSV: Print report to CSV outfile.
- *OUTFILE: Print report as text to an outfile.
- *PRINT: Print to default printer.
- *PRINT[1-9]: Print to another destination, as defined via the Printer Files Setup screen (STRFW > 89 > 58).
If you choose a destination that goes to an outfile, additional fields appear for further information.
After entering this information, press Enter.
The Add Job Schedule Entry (ADDJOBSCDE) screen appears, as shown in IBM documentation at https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/cl/addjobscde.htm:
Add Job Schedule Entry (ADDJOBSCDE) Type choices, press Enter. Job name . . . . . . . . . . . . > GS@ADOC2 Name, *JOBD Frequency . . . . . . . . . . . > *WEEKLY *ONCE, *WEEKLY, *MONTHLY Schedule date . . . . . . . . . > *NONE Date, *CURRENT, *MONTHSTR... Schedule day . . . . . . . . . . > *ALL *NONE, *ALL, *MON, *TUE... + for more values Schedule time . . . . . . . . . > 230000 Time, *CURRENT Additional Parameters Job description . . . . . . . . > *USRPRF Name, *USRPRF Library . . . . . . . . . . . Name, *LIBL, *CURLIB Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys |
After entering values, press Enter to return to the Work with Report Scheduler screen.